WebForm.gotoPage

Goes immediately to the specified page and terminates the event currently being executed; no statements past this method call will be executed. Any after page event configured on the current page will not be executed; this is in contrast to navigating to a page using a page navigation control such as a Next Page Button Control. Any before page events configured for the target page are executed before the page is displayed.

This method can only be called within the context of a web form event. When called from any other context, e.g. a JSP, a RuntimeException is thrown.

If the target page contains a Previous Page Button Control or a Page Navigation Panel Control, a previous page button linking to the current page will be displayed on the target page.

Javascript example:

form.gotoPage(pages.ORDER_PAGE);

Parameters

Page page,